Mollie\WooCommerce\Payment\PaymentProcessor B

Total Complexity 91
Dependencies 15
Dependents 4
Total lines 527
Lines of code 308
Logical lines of code 216
Comment lines 156
Methods 26
Properties 11

Methods 26

Method Rating Maintainability Complexity Lines of code
processAsMollieOrder()
A
42 15 43
processAsMolliePayment()
A
53 11 18
updateOrderStatus()
A
54 8 21
processPayment()
S
46 5 37
paymentTypeBasedOnProducts()
S
55 5 19
processPaymentForMollie()
S
56 5 17
processSubscriptionSwitch()
S
57 4 16
paymentTypeBasedOnGateway()
S
62 5 10
processValidMandate()
S
57 3 16
updatePaymentStatusForDelayedMethods()
S
65 4 8
needsSubscriptionSwitch()
S
76 4 3
saveSubscriptionMandateData()
S
58 3 14
reportPaymentCreationFailure()
S
62 3 10
reportPaymentSuccess()
S
62 2 10
handleMollieOutage()
S
68 2 7
handleMollieFraudRejection()
S
68 2 7
__construct()
S
63 1 11
setGatewayHelper()
S
78 1 3
setGateway()
S
81 1 3
getProcessPaymentRedirect()
S
75 1 4
getUserMollieCustomerId()
S
73 1 5
saveMollieInfo()
S
70 1 6
noValidMandateForSubsSwitchFailure()
S
71 1 5
subsSwitchCompleted()
S
68 1 6
paymentObjectFailure()
S
75 1 4
processInitialOrderStatus()
S
71 1 5